/* jsx ctrl+m*/
import React, { Component } from 'react';
import Button from './components/Button'
import Header from './components/Header'
import './css/index.css'

class App extends Component {
  //http://122.112.161.135:3000/top/playlist?cat=华语
  constructor(props) {
    super(props)
    this.state = {
      msg: 'hello'
    }
  }
  render() {
    return (
      <div id='container'>
        <Header data={this.state.msg}></Header>
        <Button myRun={this.run}></Button>
      </div>
    );
  }
  run(params) {
    alert('run')
    console.log(params);
  }
}
export default App;